package com.example.config;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.security.cert.X509Certificate;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author 也是
 * @Date 2023/3/29
 */

@Data
@Component
public class WxpayConfig {
	public static String app_id = "wxcbfd353057d7d728"; // 公众账号ID

	public static String mch_id = "1626830484"; // 商户号

	public static String mchSerialNo = "702875316666FF836E110E3B77337326E114F455"; //微信商家api序列号
	public static String v3Key = "SHESIqXLSZMlR0nc4dJFpSyf1Ng1VqQn"; // 回调报文解密V3密钥key

	public static String KeyPath = "D:\\QMDownload\\WeChat Files\\wxid_vl5sfatsiqud22\\FileStorage\\File\\2023-04\\1626830484_20221129_cert\\1626830484_20221129_cert\\apiclient_key.pem"; // 商户的key【API密匙】存放路径


	public static String notify_order_url = "http://39.170.50.91:8080/wechatpay/doPay"; // 服务器异步通知页面路径--下单

	public static String notify_refound_url = "*************************************"; // 服务器异步通知页面路径-退款


	public static String return_url = "*************************************"; // 服务器同步通知页面路径


	public static Map<String, X509Certificate> certificateMap = new ConcurrentHashMap<>(); // 定义全局容器 保存微信平台证书公钥
}
